﻿using Omabar.Entity;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omabar.BLL
{
    public class Photo_BLL
    {
        private readonly Photo_Entity entity;
        public Photo_BLL()
        {
            entity = new Photo_Entity();
        }

        public int GetCount(string sql)
        {
            return entity.GetCount(sql);
        }

        public RESP_Info ExecuteSQL(string sql)
        {
            return entity.ExecuteSQL(sql);
        }

        public RESP_Info Add(PHOTO model)
        {
            return entity.Add(model);
        }

        public RESP_Info Update(PHOTO model)
        {
            return entity.Update(model);
        }

        public RESP_Info Delete(PHOTO flight)
        {
            return entity.Delete(flight);
        }

        public PHOTO GetModel(string id)
        {
            return entity.GetModel(id);
        }

        public PHOTO GetModelBySQL(string sql)
        {
            return entity.GetModelBySQL(sql);
        }

        public List<PHOTO> GetModels(string sql)
        {
            return entity.GetModels(sql);
        }
    }
}
